package com.haoxuer.discover.notice.data.service;

import com.haoxuer.discover.data.page.Filter;
import com.haoxuer.discover.data.page.Order;
import com.haoxuer.discover.data.page.Page;
import com.haoxuer.discover.data.page.Pageable;
import com.haoxuer.discover.notice.data.entity.UserMessage;
import java.util.List;

/**
 * Created by imake on 2018年01月02日11:12:13.
 */
public interface UserMessageService {
  
  UserMessage findById(Long id);
  
  UserMessage save(UserMessage bean);
  
  UserMessage update(UserMessage bean);
  
  UserMessage deleteById(Long id);
  
  UserMessage[] deleteByIds(Long[] ids);
  
  Page<UserMessage> page(Pageable pageable);
  
  Page<UserMessage> page(Pageable pageable, Object search);
  
  
  List<UserMessage> list(int first, Integer size, List<Filter> filters, List<Order> orders);
  
}